/*!
 * Copyright 2019 Rundeck, Inc. (http://rundeck.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import "../runstrap/variables";

.table.item_details {
  & > tr > td:first-child,
  & > tbody > tr > td:first-child,
  td.displabel {
    text-align: right;
    vertical-align: top;
    font-weight: 700;

    text-transform: uppercase;
    width: 200px;
  }
}

.wfstep-description {
  text-decoration: underline;
}

.jobstats {
  .job-stats-item {
  }

  .job-stats-value {
    font-weight: bold;
  }
}

.job-action-button {
  display: inline-block;
}

.subtitlebar {
  &.job-page {
    background: var(--background-color-lvl3);
  }
}

.exec-options-header {
  background: var(--background-color-accent-lvl2);

  .jobInfoSection {
    padding: 10px 0;
  }
}

.crontab .checklist {
  .crondeselected {
    text-decoration: line-through;
    color: var(--dark-gray);
  }

  .cronselected {
    font-weight: bold;
  }

  &.hidedeselected .crondeselected {
    display: none;
  }
}

.job_list_row,
.job_list_group_header {
  clear: both;
  cursor: pointer;
}

.job_list_group_header {
  border-radius: 3px;

  &:hover {
    background: var(--background-color-accent-lvl2);
  }

  .jobgroupexpand {
    padding: 3px;
    display: block;
    //color: #454545;
    //text-decoration: underline;
  }
}

.expandComponentHolder.expanded > .job_list_group_header > .jobgroupexpand {
  //todo: emphasize expanded groups. but, expander widget doesn't correctly set expanded state for nested elements yet
  //color: #454545;
  //text-decoration: underline;
}

.job_list_row {
  padding: 1px 0 1px 3px;
  border-style: solid;
  border-width: 0 0 3px 0;
  border-color: transparent;

  &:hover {
    background: var(--background-color-accent-lvl2);
    border-color: var(--border-color);
  }
}

@media (min-width: 993px) {
  .execution-aux-info.flex-item-1 {
    max-width: calc(50vw - 115px);
  }
}

.argstring-scrollable {
  overflow-x: hidden;
  white-space: nowrap;
}

.exec-args-section.argstring-scrollable .optkey,
.exec-args-section.argstring-scrollable .optvalue {
  display: block;
}

// eventargs is typically a table > td
// found here: /rundeckapp/grails-app/assets/scss/custom/table-events.scss
.eventargs.argstring-scrollable {
  overflow-x: auto;
  white-space: nowrap;
  max-width: 250px;
}

.exec-args-section.argstring-scrollable {
  // overflow-y: auto;
  // max-height: 200px;
}
